
package com.scalar.chiptrack.adaptor.umc;


import com.scalar.chiptrack.ChipTrackActionForm;

import com.scalar.chiptrack.adaptor.AdaptorConstants;
import com.scalar.chiptrack.adaptor.ShippedLot;
import com.scalar.chiptrack.utils.StringUtils;


public final class UMCShippingInfo
{
     private String custPart            = null;
     private String lotNumber           = null;
     private String shipWQty            = null;
     private String invoiceDate         = null;
     private String plant               = null;
     private String customerPO          = null;
     private String poNumber            = null;
     private String soNumber            = null;
     private String lineNumber          = null;
     private String lineVersion         = null;
     private String umcProduct          = null;
     private String shipProdNumber      = null;
     private String ctmDevice           = null;
     private String mthNumber           = null;
     private String mthForm             = null;
     private String packNumber          = null;
     private String packDate            = null;
     private String invoiceNumber       = null;
     private String receipt_Number      = null;
     private String invoiceType         = null;
     private String shpToCode           = null;
     private String shipNumber          = null;
     private String fabLot              = null;
     private String lotType             = null;
     private String shipDQty            = null;
     private String wsDate              = null;
     private String yield               = null;
     private String mawbNumber          = null;
     private String hawbNumber          = null;
     private String fltNumber1          = null;
     private String fltNumber2          = null;
     private String fltNumber3          = null;
     private String partDiv             = null;
     private String cpUnit              = null;
     private String orderTypeBRF        = null;
     private String poDate              = null;
     private String cycleTime           = null;
     private String prdLayer            = null;
     private String processGen          = null;
     private String processFamily       = null;
     private String ctLotNumber         = null;
     private String wareHouseDateOut    = null;
     private String customClearanceDateOut = null;
     private String forwarderHandsDateOut = null;
     private String etd                 = null;
     private String eta                 = null;
     private String departureTime       = null;
     private String shipToLocation      = null;

    public UMCShippingInfo ()
    {
        
    }

    public String getCustPart() {
        return custPart;
    }

    public void setCustPart(String custPart) {
        this.custPart = custPart;
    }

    public String getLotNumber() {
        return lotNumber;
    }

    public void setLotNumber(String lotNumber)
    {
        if ("-".equalsIgnoreCase( lotNumber ) == false )
        {
            this.lotNumber = lotNumber;
        }
    }

    public String getShipWQty() {
        return shipWQty;
    }

    public void setShipWQty(String shipWQty) {
        this.shipWQty = shipWQty;
    }

    public String getInvoiceDate() {
        return invoiceDate;
    }

    public void setInvoiceDate(String invoiceDate) {
        this.invoiceDate = invoiceDate;
    }

    public String getPlant() {
        return plant;
    }

    public void setPlant(String plant) {
        this.plant = plant;
    }

    public String getCustomerPO() {
        return customerPO;
    }

    public void setCustomerPO(String customerPO) {
        this.customerPO = customerPO;
    }

    public String getPoNumber() {
        return poNumber;
    }

    public void setPoNumber(String poNumber) {
        this.poNumber = poNumber;
    }

    public String getSoNumber() {
        return soNumber;
    }

    public void setSoNumber(String soNumber) {
        this.soNumber = soNumber;
    }

    public String getLineNumber() {
        return lineNumber;
    }

    public void setLineNumber(String lineNumber) {
        this.lineNumber = lineNumber;
    }

    public String getLineVersion() {
        return lineVersion;
    }

    public void setLineVersion(String lineVersion) {
        this.lineVersion = lineVersion;
    }

    public String getUmcProduct() {
        return umcProduct;
    }

    public void setUmcProduct(String umcProduct) {
        this.umcProduct = umcProduct;
    }

    public String getShipProdNumber() {
        return shipProdNumber;
    }

    public void setShipProdNumber(String shipProdNumber)
    {
        if ("-".equalsIgnoreCase( shipProdNumber ) == false )
        {
            this.shipProdNumber = shipProdNumber;
        }
    }

    public String getCtmDevice() {
        return ctmDevice;
    }

    public void setCtmDevice(String ctmDevice) {
        this.ctmDevice = ctmDevice;
    }

    public String getMthNumber() {
        return mthNumber;
    }

    public void setMthNumber(String mthNumber) {
        this.mthNumber = mthNumber;
    }

    public String getMthForm() {
        return mthForm;
    }

    public void setMthForm(String mthForm) {
        this.mthForm = mthForm;
    }

    public String getPackNumber() {
        return packNumber;
    }

    public void setPackNumber(String packNumber) {
        this.packNumber = packNumber;
    }

    public String getPackDate() {
        return packDate;
    }

    public void setPackDate(String packDate) {
        this.packDate = packDate;
    }

    public String getInvoiceNumber() {
        return invoiceNumber;
    }

    public void setInvoiceNumber(String invoiceNumber) {
        this.invoiceNumber = invoiceNumber;
    }

    public String getReceipt_Number() {
        return receipt_Number;
    }

    public void setReceipt_Number(String receipt_Number) {
        this.receipt_Number = receipt_Number;
    }

    public String getInvoiceType() {
        return invoiceType;
    }

    public void setInvoiceType(String invoiceType) {
        this.invoiceType = invoiceType;
    }

    public String getShpToCode() {
        return shpToCode;
    }

    public void setShpToCode(String shpToCode) {
        this.shpToCode = shpToCode;
    }

    public String getShipNumber() {
        return shipNumber;
    }

    public void setShipNumber(String shipNumber) {
        this.shipNumber = shipNumber;
    }

    public String getFabLot() {
        return fabLot;
    }

    public void setFabLot(String fabLot)
    {
        if ("-".equalsIgnoreCase( fabLot ) == false )
        {
            this.fabLot = fabLot;
        }
    }

    public String getLotType() {
        return lotType;
    }

    public void setLotType(String lotType)
    {
        this.lotType = lotType;
    }

    public String getShipDQty() {
        return shipDQty;
    }

    public void setShipDQty(String shipDQty)
    {
        if ("-".equalsIgnoreCase( shipDQty ) == false )
        {
            this.shipDQty = shipDQty;
        }
    }

    public String getWsDate() {
        return wsDate;
    }

    public void setWsDate(String wsDate)
    {
        if ("-".equalsIgnoreCase( wsDate ) == false )
        {
            this.wsDate = wsDate;
        }
    }

    public String getYield() {
        return yield;
    }

    public void setYield(String yield) {
        this.yield = yield;
    }

    public String getMawbNumber() {
        return mawbNumber;
    }

    public void setMawbNumber(String mawbNumber)
    {

        if ((mawbNumber != null) && (mawbNumber.trim().length() != 0) && (mawbNumber.equalsIgnoreCase("-") == false))
        {
        	this.mawbNumber = mawbNumber;
        }

    }

    public String getHawbNumber() {
        return hawbNumber;
    }

    public void setHawbNumber(String hawbNumber)
    {
        if ((hawbNumber != null) && (hawbNumber.trim().length() != 0) && (hawbNumber.equalsIgnoreCase("-") == false))
        {
        	this.hawbNumber = hawbNumber;
        }
    }

    public String getFltNumber1() {
        return fltNumber1;
    }

    public void setFltNumber1(String fltNumber1) {
        if (fltNumber1 != null)
        {

            int firstIndex = fltNumber1.indexOf ("  ");

            if (firstIndex != -1)
            {
                this.fltNumber1 = fltNumber1.substring (0, firstIndex);
            }

            int lastIndex = fltNumber1.lastIndexOf ("  ");

            if (lastIndex != -1)
            {
                departureTime = fltNumber1.substring ( firstIndex + 2, lastIndex );
                shipToLocation = fltNumber1.substring ( lastIndex + 2 );
            }
            //System.out.println ("transport info = " + m_transportInfo + ", destination = " + m_destination + ", departure time = " + m_departureTime);
        }

    }

    public String getFltNumber2() {
        return fltNumber2;
    }

    public void setFltNumber2(String fltNumber2) {
        this.fltNumber2 = fltNumber2;
    }

    public String getFltNumber3() {
        return fltNumber3;
    }

    public void setFltNumber3(String fltNumber3) {
        this.fltNumber3 = fltNumber3;
    }

    public String getPartDiv() {
        return partDiv;
    }

    public void setPartDiv(String partDiv) {
        this.partDiv = partDiv;
    }

    public String getCpUnit() {
        return cpUnit;
    }

    public void setCpUnit(String cpUnit) {
        this.cpUnit = cpUnit;
    }

    public String getOrderTypeBRF() {
        return orderTypeBRF;
    }

    public void setOrderTypeBRF(String orderTypeBRF) {
        this.orderTypeBRF = orderTypeBRF;
    }

    public String getPoDate() {
        return poDate;
    }

    public void setPoDate(String poDate) {
        this.poDate = poDate;
    }

    public String getCycleTime() {
        return cycleTime;
    }

    public void setCycleTime(String cycleTime) {
        this.cycleTime = cycleTime;
    }

    public String getPrdLayer() {
        return prdLayer;
    }

    public void setPrdLayer(String prdLayer) {
        this.prdLayer = prdLayer;
    }

    public String getProcessGen() {
        return processGen;
    }

    public void setProcessGen(String processGen) {
        this.processGen = processGen;
    }

    public String getProcessFamily() {
        return processFamily;
    }

    public void setProcessFamily(String processFamily) {
        this.processFamily = processFamily;
    }

    public String getCtLotNumber() {
        return ctLotNumber;
    }

    public void setCtLotNumber(String ctLotNumber) {
        this.ctLotNumber = ctLotNumber;
    }

    public String getWareHouseDateOut() {
        return wareHouseDateOut;
    }

    public void setWareHouseDateOut(String wareHouseDateOut)
    {
        if ((wareHouseDateOut != null) && (wareHouseDateOut.trim().length() != 0) && (wareHouseDateOut.equalsIgnoreCase("-") == false))
        {
            this.wareHouseDateOut = wareHouseDateOut;
        }
    }

    public String getCustomClearanceDateOut() {
        return customClearanceDateOut;
    }

    public void setCustomClearanceDateOut(String customClearanceDateOut)
    {
        if ((customClearanceDateOut != null) && (customClearanceDateOut.trim().length() != 0) && (customClearanceDateOut.equalsIgnoreCase("-") == false))
        {
                  this.customClearanceDateOut = customClearanceDateOut;
        }
     }

    public String getForwarderHandsDateOut() {
        return forwarderHandsDateOut;
    }

    public void setForwarderHandsDateOut(String forwarderHandsDateOut)
    {
        if ((forwarderHandsDateOut != null) && (forwarderHandsDateOut.trim().length() != 0) && (forwarderHandsDateOut.equalsIgnoreCase("-") == false))
        {
            this.forwarderHandsDateOut = forwarderHandsDateOut;
        }
    }

    public String getEtd() {
        return etd;
    }

    public void setEtd(String etd)
    {
        if ((etd != null) && (etd.trim().length() != 0) && (etd.equalsIgnoreCase("-") == false))
        {
           etd = etd.substring(0,10);
           this.etd = etd;
        }
    }

    public String getEta() {
        return eta;
    }

    public void setEta(String eta)
    {
       if ( ( eta != null ) && ( eta.trim().length() != 0 ) && ( eta.equalsIgnoreCase("-") == false ) )
        {
           eta = eta.substring(0,10);
           this.eta = eta;
        }
    }

    public String getShipToLocation() {
        return shipToLocation;
    }

    public String getDateOut()
    {
        return departureTime;
    }

}